package study.member.sungil.oop1;

/**
 * @author : hiyogils
 * @date : 2014. 11. 24.
 * @description : 
 */
public class Time {
	
	private int hour;
	private int minute;
	private int second;
	
	public int getHour(){
		return hour;
	}
	
	public void setHour(int h){
		if(h<0 || h>23){
			return;
		}
		hour= h;
	}
	
	public int getMinute(){
		return minute;
	}
	
	public void setMinute(int m){
		if(m<0 || m>59){
			return;
		}
		minute = m;
	}
	
	public int getSecond(){
		return second;
	}
	
	public void setSecond(int s){
		if(s<0 && s>59){
			return;
		}
		second = s;
	}
	

}
